-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(trivy): Add dbRepository flag to get advisory database from OCI registry #1064
feat(trivy): Add dbRepository flag to get advisory database from OCI registry #1064
Conversation
|
@knqyf263 Could you please review this dependent PR also? Thanks 🙂 |
Codecov Report
@@ Coverage Diff @@
## main #1064 +/- ##
==========================================
- Coverage 58.00% 57.96% -0.04%
==========================================
Files 71 71
Lines 9290 9305 +15
==========================================
+ Hits 5389 5394 +5
- Misses 3354 3361 +7
- Partials 547 550 +3
Continue to review full report at Codecov.
|
@chen-keinan Thanks for the comments, I've addressed them 🙂 Could you please take an another look? |
Thank you for the update; LGTM!! |
Note that Trivy added |
@ksashikumar this PR should also include the trivy version change from : |
@chen-keinan Thanks for that! I've updated the version in the files. Could you please take another look? |
@ksashikumar thank you for this effort; |
@chen-keinan Oops, I missed that. Thanks for letting me know. I've fixed that 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just run the code in my cluster, following the contributing guide, and I'm getting the following errors:
{"level":"error","ts":1649332073.3865209,"logger":"controller.replicaset","msg":"Reconciler error","reconciler group":"apps","reconciler kind":"ReplicaSet","name":"local-path-provisioner-5ddd94ff66","namespace":"local-path-storage","error":"constructing scan job: property trivy.dbRepository not set","stacktrace":"sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/Users/dpacak/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/Users/dpacak/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227"}
Please check my comments to see why it may happen. This should also fix integration tests run in the CI workflow.
This PR adds
--db-repository
flag to trivy plugin and helm config. The flag is introduced in aquasecurity/trivy#1873Related issue in GitLab: #350232